#include "widget.h"
#include "ui_widget.h"
#include <QDebug>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}



void Widget::on_radioButton_1_clicked(bool checked)
{
    //checked表示选中状态
    qDebug()<<"clicked:"<<checked;
}

void Widget::on_radioButton_3_pressed()
{
    //按下响应
    qDebug()<<"pressed:";
}

void Widget::on_radioButton_5_released()
{
    //松开响应
    qDebug()<<"released:";
}

void Widget::on_radioButton_4_toggled(bool checked)
{
    //checked状态改变响应
    qDebug()<<"toggled:"<<checked;
}
